import Layout from '@/layout'

export default {
  path: '/employee',
  component: Layout,
  redirect: '/employee/courier',
  name: 'employee',
  meta: { title: '员工管理', icon: 'el-icon-s-check' },
  children: [
    {
      path: 'courier',
      name: 'courier',
      component: () => import('@/views/employee/courier/index'),
      meta: { title: '快递员管理' }
    },
    {
      path: 'driver',
      name: 'driver',
      component: () => import('@/views/employee/driver/index'),
      meta: { title: '司机管理' }
    },
    {
      path: '/manager/driver/:id?',
      name: 'viewdriver',
      component: () => import('@/views/employee/driver/viewdriver'),
      hidden: true, // 表示隐藏在左侧菜单
      meta: {
        title: '司机详情' // 显示在导航的文本
      }
    },
    {
      path: 'classes',
      name: 'classes',
      component: () => import('@/views/employee/classes/index'),
      meta: { title: '排班管理' }
    },
    {
      path: 'workArrange-setting',
      name: 'workArrange-setting',
      hidden: true,
      component: () => import('@/views/employee/classes/classes-setting'),
      meta: { title: '排班设置' }
    }
  ]
}
